<?php
require_once 'protected/funzioni.php';
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
session_start();
 

if (isset($_GET['lang'])){
	$currentLang= $_GET['lang'];
	}
	else
	{
		$currentLang='it';
	}

if		(!isset($_GET['action']) || $_GET['action']=='index')	{include 'protected/main.php';}
elseif 	($_GET['action']=='admin')								{include 'protected/admin.php';}
elseif 	($_GET['action']=='list_pages')							{include 'protected/list_pages.php';}
elseif 	($_GET['action']=='page')								{include 'protected/page.php';}
elseif 	($_GET['action']=='login')								{include 'protected/login.php';}
elseif 	($_GET['action']=='logout')								{include 'protected/logout.php';}
else							{include 'protected/error.php';}


?>

